DigiOffice Gateway Web Services

<back to all web services

ProcessDocumentRequestMessage

Requires Authentication
ProcessDocumentRequestMessage Parameters:
NameParameterData TypeRequiredDescription
InstanceIdqueryGuidNo
DocumentRequestqueryDocumentRequestMessageNo
DocumentRequestMessage Parameters:
NameParameterData TypeRequiredDescription
HeaderformHeaderNo
RootDocumentIDformstringNo
IncludePhysicalFileformboolNo
Header Parameters:
NameParameterData TypeRequiredDescription
MessageIDformstringNo
TimestampformDateTimeNo
SenderformPartyNo
RecipientformPartyNo
RequestMessageIDformObjectNo
Party Parameters:
NameParameterData TypeRequiredDescription
TitleformstringNo
CodeformstringNo
VersionformstringNo
EnvironmentformEnvironmentNo
Environment Parameters:
NameParameterData TypeRequiredDescription
TitleformstringNo
CodeformstringNo
DocumentMessage Parameters:
NameParameterData TypeRequiredDescription
HeaderformHeaderNo
EventTypeformeventTypeNo
DocumentformDocumentNo
eventType Enum:
Update
Create
Delete
Response
Document Parameters:
NameParameterData TypeRequiredDescription
IDformGuidNo
RootDocumentIDformGuidNo
RegistrationprofileIDformGuidNo
TitleformstringNo
FullTitleformstringNo
NumberformstringNo
VersionformstringNo
ExternalNumberformstringNo
ExternalVersionformstringNo
InternalNumberformstringNo
InternalInvoiceNumberformstringNo
PersonIDformintNo
RelationIDformintNo
RelationTitleformstringNo
ProjectIDformintNo
ProjectTitleformstringNo
ExtensionformstringNo
DateformDateTime?No
CommentsCountformintNo
HasCommentsformboolNo
HasPreviewformboolNo
ExtraFieldformstringNo
IsFavoriteformboolNo
DocumentcategoryTextformstringNo
FileSizeformlong?No
FileDateformDateTime?No
HashformstringNo
HashTypeformstringNo
FileUrlformstringNo
StandardDocumentUrlformstringNo
IsCorporateIdentityformboolNo
UserTitleformstringNo
IsFrozenformboolNo
InternalCompanyIDformintNo
DirectUrlformstringNo
AllowDigitalSigningOnlyOnPrimaryVersionsformboolNo
IsPrimaryVersionformboolNo
FileExtensionformstringNo
CustomPropertiesformDictionary<string, Object>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/ProcessDocumentRequestMessage HTTP/1.1 
Host: kpm_digiofficeapigateway.tbi.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DocumentRequest: 
	{
		Header: 
		{
			MessageID: String,
			Timestamp: 0001-01-01,
			Sender: 
			{
				Title: String,
				Code: String,
				Version: String,
				Environment: 
				{
					Title: String,
					Code: String
				}
			},
			Recipient: 
			{
				Title: String,
				Code: String,
				Version: String,
				Environment: 
				{
					Title: String,
					Code: String
				}
			},
			RequestMessageID: {}
		},
		RootDocumentID: String,
		IncludePhysicalFile: False
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Header: 
	{
		MessageID: String,
		Timestamp: 0001-01-01,
		Sender: 
		{
			Title: String,
			Code: String,
			Version: String,
			Environment: 
			{
				Title: String,
				Code: String
			}
		},
		Recipient: 
		{
			Title: String,
			Code: String,
			Version: String,
			Environment: 
			{
				Title: String,
				Code: String
			}
		},
		RequestMessageID: {}
	},
	EventType: Update,
	Document: 
	{
		GlobalID: String,
		RootDocumentID: String,
		Code: String,
		Subject: String,
		VersionNumber: String,
		NewestVersion: False,
		RelationReference: 
		{
			GlobalID: String,
			Title: String
		},
		DocumentTypeReference: 
		{
			GlobalID: String,
			Title: String
		},
		ProjectReference: 
		{
			GlobalID: String,
			Title: String
		},
		ConstructionBlockReference: 
		{
			GlobalID: String,
			Title: String
		},
		ConstructionNumberReference: 
		{
			GlobalID: String,
			Title: String
		},
		HousingTypeReference: 
		{
			GlobalID: String,
			Title: String
		},
		Floor: 0,
		FloorSpecified: False,
		DeletedDate: 0001-01-01,
		DeletedDateSpecified: False,
		File: 
		{
			Type: String,
			Name: String,
			Size: 0,
			Content: String,
			ModifiedDate: 0001-01-01
		},
		CustomFields: 
		[
			{
				Name: String,
				Value: String
			}
		],
		CreationDate: 0001-01-01,
		CreatedBy: String,
		ModifiedDate: 0001-01-01,
		ModifiedBy: String
	}
}